package br.ufrgs.tcp.db;

import android.content.Context;

public class AdapterFactory {

	public enum AdapterType {
		PREDIO,
		SALA;
	}

	private static Context contextReference;

	public static void init(Context context) {
		contextReference = context;
	}

	public static SQLAdapter create(AdapterType adapterType) {

		switch (adapterType) {

		case PREDIO:
			return new PredioSQLAdapter(contextReference);
		case SALA:
			return new SalaSQLAdapter(contextReference);
		default:
			return null;
		}
	}

}
